/**
 * ===========================================================================
 * 版权所有 湖南免了么网络科技有限公司，并保留所有权利。
 * 网站地址: http://www.mianle.me
 * ===========================================================================
 * 19:10 2018/6/15
 */
package com.mianle.userapi.util;

import com.mianle.userapi.model.Numbers;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @Author: yiyuan
 * @Description:
 * @Date: Created in 19:10 2018/6/15
 *
 */
public class TestNumbers {

    public static void main(String[] args) {

        /*//总预售数
        object.setTotalPresaleCopy(mlpresaleConf.getTotalPresaleCopy());
        //总剩余数
        object.setTotalSurplusCopy(mlpresaleConf.getTotalSurplusCopy());
        //今日限购数
        if(mlpresaleConf.getTodayLimited() > mlpresaleConf.getTotalSurplusCopy()) {
            object.setTodayLimited(mlpresaleConf.getTotalSurplusCopy());
            object.setTodaySurplus(mlpresaleConf.getTotalSurplusCopy());
        } else {
            object.setTodayLimited(mlpresaleConf.getTodayLimited());
            object.setTodaySurplus(mlpresaleConf.getTodayLimited());
        }*/

        Numbers numbers = new Numbers();
        numbers.setTotalPresaleCopy(100L);
        numbers.setTodaySurplus(100L);
        numbers.setTodayLimited(10L);
        numbers.setTodaySurplus(10L);
        List<Numbers> result = new ArrayList<>();
        for(int i = 1; i <= 30; i++) {
            int randomNum = ThreadLocalRandom.current().nextInt(10, 38 + 1);
        }

    }
}
